package pdf;

public class pdfTest {
    public void test1() {//生成pdf
        Document document = new Document();
        try {
            PdfWriter.getInstance(document, new FileOutputStream("pdfFolder/1.pdf"));
            document.open();
            document.add(new Paragraph("hello word"));
            document.close();
        } catch (FileNotFoundException | DocumentException e) {
            System.out.println("file create exception");
        }
    }
}
